﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for PageBase
/// </summary>
public class PageBase : System.Web.UI.Page
{
	public PageBase()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    protected void ValidarUsuario()
    {
        try
        {
            if (Session["usuario"] == null)
            {
                Response.Redirect("~/AreaRestrita/Default.aspx");
            }
        }
        catch
        {
            Response.Redirect("~/AreaRestrita/Default.aspx");
        }
    }
}